								<table class="table table-striped table-hover table-bordered" id="sample_editable_1">
								<thead>
								<tr>
								<?php foreach($payment_fields as $payment_k => $payment_v):?>
									<th>
										 <?php echo anchor('admin/payment/index/'.$payment_k.'/'.(($sort_order == 'asc' && $order_by == $payment_k) ? 'desc' : 'asc'), $payment_v);?>
									</th>
									<?php endforeach;?>
									<th>
										 Edit
									</th>
									<th>
										 Delete
									</th>
									</tr>
								</thead>
								<tbody>
								<?php echo 'Total Records: '.$payment_all_payments->total;?><br>
								<?php echo 'Current Payment Gateway: '.$payment_all_payments->info[0]->payment_gateway;?><br>
								<?php echo 'Last Modified by: '.$payment_all_payments->info[0]->first_name.' '.$payment_all_payments->info[0]->last_name;?>
								<?php //echo '<pre>';print_r($payment_all_payments);exit;?>
								<?php foreach($payment_all_payments->info as $payment):?>
								<tr>
									<td>
										 <?php echo $payment->payment_gateway;?>
									</td>
									<td>
										 <?php echo $payment->first_name.' '.$payment->last_name;?>
									</td>
									<td>
										 <?php if($payment->status == 1){?>
										 <i class="fa fa-check"></i>
										 <?php }else{ ?>
										 <i class="fa fa-times"></i>
										  <?php } ?>
									</td>
									<td>
										 <?php echo $payment->created_date;?>
									</td>
									<td>
										<a class="edit" href="<?php echo base_url().'index.php/admin/payment/edit_payment/'.$payment->payment_id;?>">
										Edit </a>
									</td>
									<td>
										<a class="delete" href="<?php echo base_url().'index.php/admin/payment/delete_payment/'.$payment->payment_id.'/'.$payment->status;?>">
										<?php if($payment->status == 1){?>
										 Delete
										 <?php }else{ ?>
										 Active
										  <?php } ?></a>
									</td>
									</tr>
								<?php endforeach;?>
								
							</table>
							<?php echo $pagination;?>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>